package com.lupan.springboot.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 说明：
 *
 * @author lupan
 * @version 2017/6/16 14:08
 */
@Component
@ConfigurationProperties(prefix="my")
public class MyBean {

    @Value("${name}")
    private String name;

    private List<String> names;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getNames() {
        return names;
    }

    public void setNames(List<String> names) {
        this.names = names;
    }
}
